﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using DAO;

namespace BUS
{
  public  class LoaiPhongBUS
    {
        public List<LoaiPhongDTO> DanhSachLoaiPhong()
        {
            LoaiPhongDAO kq = new LoaiPhongDAO();
            return kq.DanhSachLoaiPhong();
        }
        public LoaiPhongDTO LayLoaiPhongByMaLoaiPhong(int maLoaiPhong)
        {
            LoaiPhongDAO kq = new LoaiPhongDAO();
            return kq.LayLoaiPhongByMaLoaiPhong(maLoaiPhong);
        }
        public Boolean ThemLoaiPhong(LoaiPhongDTO lp)
        {
            LoaiPhongDAO kq = new LoaiPhongDAO();
            return kq.ThemLoaiPhong(lp);
        }
        public Boolean XoaLoaiPhong(int maLoaiPhong)
        {
            LoaiPhongDAO kq = new LoaiPhongDAO();
            return kq.XoaLoaiPhong(maLoaiPhong);
        }
        public Boolean CapNhatLoaiPhong(LoaiPhongDTO lp)
        {
            LoaiPhongDAO kq = new LoaiPhongDAO();
            return kq.CapNhatLoaiPhong(lp);
        }
    }
}
